package com.shop.cereshop.business.dao.tool;

import com.shop.cereshop.business.page.tool.ToolProduct;
import com.shop.cereshop.commons.domain.tool.CereShopGroupWorkDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereShopGroupWorkDetailDAO {
    int insert(CereShopGroupWorkDetail record);

    int insertSelective(CereShopGroupWorkDetail record);

    void insertBatch(@Param("list") List<CereShopGroupWorkDetail> list);

    void deleteById(@Param("shopGroupWorkId") Long shopGroupWorkId);

    List<ToolProduct> findProducts(@Param("shopGroupWorkId") Long shopGroupWorkId);

    List<ToolProduct> findDistinctProducts(@Param("shopGroupWorkId") Long shopGroupWorkId);
}